package com.manager.car.service;

import java.util.List;

import com.manager.car.po.SubscribeInfo;
import com.manager.car.util.PageBean;



public interface ISubscribeService {
	/**
	* 分页 + 条件查询
	*
	* @param courseType
	* 条件
	* @param pageNum
	* 当前页
	* @param pageSize
	* 每页显示个数
	* @return
	*/
	public PageBean<SubscribeInfo> findAll(SubscribeInfo courseType,
	int pageNum, int pageSize);
	
	//添加
    public void addSub(SubscribeInfo sub);
	//修改
    public void updateSub(SubscribeInfo sub);
    //删除
    public void deleteSub(Integer id);
    //根据id查询
    public SubscribeInfo queryById(Integer id);
    //查询数据
    public List<SubscribeInfo> queryAll(String name,int limit,int page);
    //查询总记录数
    public int getcount(String name,int limit,int page);
}
